/**
 *
 */
package soa.security.jpa.service.impl;

import javax.annotation.Resource;

import soa.security.jpa.domain.Change;
import soa.security.jpa.repository.ChangeRepository;
import soa.security.jpa.service.ChangeMgrService;
import soa.security.jpa.service.ChangePolicy;

/**
 * @author Cre.Gu
 *
 */
public class RealtimeChangePolicy implements ChangePolicy {

	@Resource
	private ChangeRepository changeRepository;
	@Resource
	private ChangeMgrService changeMgrService;

	@Override
	public void record(Change change) {
		changeMgrService.save(change);
	}

}
